package com.crane.oss.app.bean.request.appuser;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月20日 23时05分57秒
 */
@ApiModel(description = "新增前端用户参数")

@Getter
@Setter
@ToString
public class AddAppUserReq implements Serializable {

	private static final long serialVersionUID = -2186411025226468225L;

    @ApiModelProperty(value = "类型: 1老师 2家长", name = "user_type")
    private Integer userType;

    @ApiModelProperty(value = "手机号码", name = "mobile")
    @Size(max = 11, message = "mobile长度超长")
    private String mobile;

    @ApiModelProperty(value = "登录密码", name = "password")
    @Size(max = 255, message = "password长度超长")
    private String password;

    @ApiModelProperty(value = "家长身份值", name = "identity")
    private String identity;

    @ApiModelProperty(value = "昵称", name = "nick_name")
    @Size(max = 20, message = "nick_name长度超长")
    private String nickName;

    @ApiModelProperty(value = "真实姓名", name = "real_name")
    @Size(max = 20, message = "real_name长度超长")
    private String realName;

    @ApiModelProperty(value = "备注", name = "remark")
    @Size(max = 255, message = "remark长度超长")
    private String remark;

    @ApiModelProperty(value = "头像", name = "head_url")
    @Size(max = 255, message = "head_url长度超长")
    private String headUrl;

    @ApiModelProperty(value = "微信open_id", name = "open_id")
    @Size(max = 32, message = "open_id长度超长")
    private String openId;

    @ApiModelProperty(value = "微信union_id", name = "union_id")
    @Size(max = 32, message = "union_id长度超长")
    private String unionId;

    @ApiModelProperty(value = "创建时间", name = "create_time", hidden = true)
    private Date createTime;

}
